Optimal. Leaf size=124 \[ \frac{2 B (a+b x) \sqrt{d+e x}}{b e \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{2 (a+b x) (A b-a B) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{b d-a e}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0758117, antiderivative size = 124, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 35, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.114, Rules used = {770, 80, 63, 208} \[ \frac{2 B (a+b x) \sqrt{d+e x}}{b e \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{2 (a+b x) (A b-a B) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} \sqrt{a^2+2 a b x+b^2 x^2} \sqrt{b d-a e}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 770
Rule 80
Rule 63
Rule 208
Rubi steps
\begin{align*} \int \frac{A+B x}{\sqrt{d+e x} \sqrt{a^2+2 a b x+b^2 x^2}} \, dx &=\frac{\left (a b+b^2 x\right ) \int \frac{A+B x}{\left (a b+b^2 x\right ) \sqrt{d+e x}} \, dx}{\sqrt{a^2+2 a b x+b^2 x^2}}\\ &=\frac{2 B (a+b x) \sqrt{d+e x}}{b e \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{\left (2 \left (\frac{1}{2} A b^2 e-\frac{1}{2} a b B e\right ) \left (a b+b^2 x\right )\right ) \int \frac{1}{\left (a b+b^2 x\right ) \sqrt{d+e x}} \, dx}{b^2 e \sqrt{a^2+2 a b x+b^2 x^2}}\\ &=\frac{2 B (a+b x) \sqrt{d+e x}}{b e \sqrt{a^2+2 a b x+b^2 x^2}}+\frac{\left (4 \left (\frac{1}{2} A b^2 e-\frac{1}{2} a b B e\right ) \left (a b+b^2 x\right )\right ) \operatorname{Subst}\left (\int \frac{1}{a b-\frac{b^2 d}{e}+\frac{b^2 x^2}{e}} \, dx,x,\sqrt{d+e x}\right )}{b^2 e^2 \sqrt{a^2+2 a b x+b^2 x^2}}\\ &=\frac{2 B (a+b x) \sqrt{d+e x}}{b e \sqrt{a^2+2 a b x+b^2 x^2}}-\frac{2 (A b-a B) (a+b x) \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )}{b^{3/2} \sqrt{b d-a e} \sqrt{a^2+2 a b x+b^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.0698704, size = 111, normalized size = 0.9 \[ \frac{2 (a+b x) \left (e (a B-A b) \sqrt{b d-a e} \tanh ^{-1}\left (\frac{\sqrt{b} \sqrt{d+e x}}{\sqrt{b d-a e}}\right )+\sqrt{b} B \sqrt{d+e x} (b d-a e)\right )}{b^{3/2} e \sqrt{(a+b x)^2} (b d-a e)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.008, size = 110, normalized size = 0.9 \begin{align*} 2\,{\frac{bx+a}{\sqrt{ \left ( bx+a \right ) ^{2}}eb\sqrt{ \left ( ae-bd \right ) b}} \left ( A\arctan \left ({\frac{\sqrt{ex+d}b}{\sqrt{ \left ( ae-bd \right ) b}}} \right ) be-B\arctan \left ({\frac{\sqrt{ex+d}b}{\sqrt{ \left ( ae-bd \right ) b}}} \right ) ae+B\sqrt{ex+d}\sqrt{ \left ( ae-bd \right ) b} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{B x + A}{\sqrt{{\left (b x + a\right )}^{2}} \sqrt{e x + d}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.64944, size = 450, normalized size = 3.63 \begin{align*} \left [-\frac{\sqrt{b^{2} d - a b e}{\left (B a - A b\right )} e \log \left (\frac{b e x + 2 \, b d - a e - 2 \, \sqrt{b^{2} d - a b e} \sqrt{e x + d}}{b x + a}\right ) - 2 \,{\left (B b^{2} d - B a b e\right )} \sqrt{e x + d}}{b^{3} d e - a b^{2} e^{2}}, -\frac{2 \,{\left (\sqrt{-b^{2} d + a b e}{\left (B a - A b\right )} e \arctan \left (\frac{\sqrt{-b^{2} d + a b e} \sqrt{e x + d}}{b e x + b d}\right ) -{\left (B b^{2} d - B a b e\right )} \sqrt{e x + d}\right )}}{b^{3} d e - a b^{2} e^{2}}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{A + B x}{\sqrt{d + e x} \sqrt{\left (a + b x\right )^{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.1382, size = 117, normalized size = 0.94 \begin{align*} \frac{2 \, \sqrt{x e + d} B e^{\left (-1\right )} \mathrm{sgn}\left (b x + a\right )}{b} - \frac{2 \,{\left (B a \mathrm{sgn}\left (b x + a\right ) - A b \mathrm{sgn}\left (b x + a\right )\right )} \arctan \left (\frac{\sqrt{x e + d} b}{\sqrt{-b^{2} d + a b e}}\right )}{\sqrt{-b^{2} d + a b e} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]